package tests;
import java.util.Date;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import DAO.DaoActif;
import businessEntities.*;
public class DateCoursTest {
	
	Actif a;
	Date t;

	@Before
	public void setUp(){
		
		t = DateCours.getDate("22/01/2010", DateCours.FORMAT_DD_MM_YYYY);
		
	}
	
	
	@Test
	public void testGetDateStringString() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetDateDateString() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetNextDate() {
		
		Date actual = DateCours.getNextDate(t, 4);
		Date expected = DateCours.getDate("19/01/2010", DateCours.FORMAT_DD_MM_YYYY);
		System.out.println("sisi: "+actual);
		assertEquals(expected, actual);
		
	}

	@Test
	public void testGetPeriodeJours() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetDateDateIntIntInt() {
		fail("Not yet implemented");
	}

}
